package com.wk.springboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname TestController
 * @Description 测试Controller
 * @Date 2020/4/8 17:53
 * @Author by weikai
 */
@RestController
public class TestController {

  private Logger logger = LoggerFactory.getLogger(this.getClass());

  @RequestMapping("/test")
  public String sayHello(){
    String result = "hello remote";
    logger.info("这个是controller类");
    return result;
  }
}
